package com.tianji.promotion.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class DemoTask {

    @Async("线程池的名称")
    public void demo(){
        log.info("---------demo-------------");
    }

}
